import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/iconfonts/iconfont.css'
import MintUI from 'mint-ui' //引入mint-ui
Vue.use(MintUI)
import 'mint-ui/lib/style.css'
import './assets/muI/dist/css/mui.css'
import moment from 'moment'

//引入图片预览插件vue-preview
import vuePreview from 'vue-preview'
Vue.use(vuePreview) //默认安装这个插件

//全局时间过滤器
Vue.filter('dateFormat',function (datestr) {
   return  moment(datestr).format('YYYY-MM-DD HH:mm:ss')

})
//全局的价格过滤器
Vue.filter('priceFormat',function (price) {
    return '￥'+ Number(price).toFixed(2)
})

import vueResource from 'vue-resource'
Vue.use(vueResource)
Vue.http.options.root = 'http://www.liulongbin.top:3005'//根地址设置
Vue.http.options.emulateHTTP = true; //设置post提交方式使用表单格式

import LyTab from 'ly-tab'
Vue.use(LyTab)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
